mobileSensorAvailable
Type
function
Summary
Returns the availability of the given sensor.
Syntax
mobileSensorAvailable(<sensor>)
Description
Use the mobileSensorAvailable function to find out if a sensor is available.
The mobileSensorAvailable function returns the availability of the named sensor.
Parameters
Name | Type | Description |
---|---|---|
sensor | enum | The name of the sensor |
Examples
get mobileSensorAvailable("location")
put mobileSensorAvailable("heading") into tHeadingSensorAvailable
Related
command: mobileStopTrackingSensor, mobileStartTrackingSensor
function: mobileSensorReading
Compatibility and Support
Introduced
LiveCode 5.5
OS
ios
android
Platforms
mobile